package com.halflife.framework.generator.template.mapper;

/**
 * Created by zhaoyf on 2018/6/18.
 */
public class SelectAllAnalysis extends BaseAnalysis {
    public SelectAllAnalysis(Class clazz) {
        super(clazz);
    }

    @Override
    protected void setPrefix() {
        this.xmlStr.append("<select id=\"selectAll\"  resultMap=\"BaseResultMap\" >\n");
        this.xmlStr.append("\t select \n");
        this.xmlStr.append("\t <include refid=\"Base_Column_List\" />\n");
        this.xmlStr.append("\t from " ).append(this.joinStrs.toString());
        this.xmlStr.append("\n\t <where>\n" );

    }

    @Override
    protected String getValue1(CustomField customField) {

        return this.getQueryString(customField);
    }
    protected void comma() {

    }


    ;

    protected void setSuffix() {
        this.setEndQueryString();
        this.xmlStr.append("\t </where> \n");
        this.setOrderQueryString();
        this.xmlStr.append("</select>");
    }

    ;
}
